package main

import (
	"fmt"
	"reflect"
)

func main(){
	type a struct {
		A string
		B int
	}

	var aa a
	aa.B=123
	aa.A="去年今日此门中"

	aaV:=reflect.ValueOf(&aa).Elem()

	for i:=0;i<aaV.NumField();i++{
		fmt.Println(aaV.Field(i))
	}


}

func main1(){
	var a int = 123


	aV:=reflect.ValueOf(a)

	fmt.Println(aV.Int())
}
